<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
    <!-- 微软的老式浏览器 -->
    <meta name="MobileOptimized" content="320">
    <!-- 启用360浏览器的极速模式(webkit) – -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
    <meta name="HandheldFriendly" content="true">
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <!-- UC强制全屏 -->
    <meta name="full-screen" content="yes">
    <!-- QQ强制全屏 -->
    <meta name="x5-fullscreen" content="true">
    <!-- UC应用模式 若开启长按无法复制链接-->
    <!--meta name="browsermode" content="application"-->
    <!-- QQ应用模式 -->
    <meta name="x5-page-mode" content="app">
    <!--网站开启对web app程序的支持-->
    <meta name="apple-touch-fullscreen" content="yes">
    <!--在web app应用下状态条（屏幕顶部条）的颜色-->
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!-- windows phone 点击无高光 -->
    <meta name="msapplication-tap-highlight" content="no">
    <!--移动web页面是否自动探测电话号码-->
    <!--<meta http-equiv="x-rim-auto-match" content="none">-->
    <!--手机号码显示为拨号链接-->
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Cache-Control" content="max-age=300" />
    <meta http-equiv="Expires" content="300" />
    <title>8号金融街</title>
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/financial.css">
    <link rel="stylesheet" href="../assets/swiper/css/swiper.min.css">
    <script src="../js/jquery.min.js"></script>
    <script src="../assets/swiper/js/swiper.jquery.min.js"></script>
    <script src="../assets/better-scroll/bscroll.min.js"></script>
    <script>
        (function (window) {
            var docEl = document.documentElement;
            var h;

            function setUnitA() {
                window.rem = docEl.getBoundingClientRect().width / 10;
                docEl.style.fontSize = window.rem + 'px';
            }

            window.addEventListener('resize', function () {
                clearTimeout(h);
                h = setTimeout(function(){
                    setUnitA();
                }, 300);
            }, false);

            window.addEventListener('pageshow', function (e) {
                if (e.persisted) {
                    clearTimeout(h);
                    h = setTimeout(function(){
                        setUnitA();
                    }, 300);
                }
            }, false);

            setUnitA();

        })(window);
    </script>
</head>
<body>
    <div class="switches">
        <ul class="switches-wrapper">
            <li class="active" onTouchStart="switchButton(this)">热门推荐</li>
            <li onTouchStart="switchButton(this)">精选平台</li>
        </ul>
    </div>
    <div class="tabs">
        <div class="tabs-container">
            <!--<ul class="tabs-wrapper clearfix">-->
                <!--<li>综合排序</li>-->
                <!--<li>综合排序</li>-->
                <!--<li>综合排序</li>-->
                <!--<li>按投资金额返利</li>-->
            <!--</ul>-->
        </div>
        <div class="nav-swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide">综合排序</div>
                <div class="swiper-slide">综合排序</div>
                <div class="swiper-slide">综合排序</div>
                <div class="swiper-slide">按投资金额返利</div>
            </div>
        </div>
    </div>
    <div class="plat-item-wrapper">
        <div class="plat-item">
            <div class="plat-item-header">
                <div class="plat-logo-wrapper">
                    <img src="../images/m-platlogo-1.png" alt="">
                </div>
                <div class="tags-wrapper">
                    <span class="tag">国资系</span>
                    <span class="tag">已存管</span>
                </div>
                <div class="profit-wrapper">
                    <span>平台利息</span>
                    <span class="profit"><em>18.8</em>%</span>
                </div>
            </div>
            <div class="plat-item-body">
                <div class="return-money">
                    <span><em>188</em>元</span>
                    <span>投资金额</span>
                </div>
                <div class="invest-money"></div>
                <div class="invest-time"></div>
            </div>
        </div>
    </div>
<script src="../js/financial.js"></script>
<script>
    $(function () {
//        var tabContainerWidth = 0;
//        var tabItems = $(".tabs-wrapper").children()
//        for (var i = 0; i < tabItems.length; i++) {
//            var obj = tabItems[i];
//            var width = $(obj).width()
//            console.log(width);
//            tabContainerWidth += width + 30
//        }
//        console.log(tabContainerWidth);
//        var deviceWidth = $(document).width()
//        $('.tabs-container').css('width', deviceWidth)
//
//        var tabs = document.querySelector(".tabs-container")
//        var scroll = new BScroll(tabs, {
//            scrollX: true, // 可以横向滚动
//            scrollY: false, // 不可以纵向滚动
//            probeType: 2,
//            click: true,
//        })
    })
</script>
</body>
</html>